﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneWorks.Utils.Metadata.Connection
{
    using OneWorks.Utils.Metadata.Interface;

    public class MySqlConnection:IConnection
   
    {
        private readonly string server;

        private readonly string database;

        private readonly string user;

        private readonly string password;

        public MySqlConnection(string Server, string Database, string User, string Password)
        {
            server = Server;
            database = Database;
            user = User;
            password = Password;
        }

        public string GetConnectionString()
        {
            return string.Format(Base.MYSQLCONNECTIONSTRING, server, database, user, password);
        }
    }
}
